package com.sch.study.base;

/**
 * User: hui_stone
 * Date: 2016/2/8 0008
 * Time: 下午 20:28
 */
public class Super {

    private String name = "super";

    public Super(){
        callName();
    }

    protected void callName(){
        System.out.println("=====>"+name);
    }

    public static class Sub extends Super{

        private String name = "Sub";

        public void callName1(){
            System.out.println("=====>"+name);
        }
    }

    public static void main(String[] args) {
        Super s = new Sub();
    }
}
